-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_private_dns_zone_virtual_network_link - Add support for Resolution Policy #28615
base: main
Are you sure you want to change the base?
Conversation
internal/services/privatedns/private_dns_zone_virtual_network_link_data_source.go
Outdated
Show resolved
Hide resolved
internal/services/privatedns/private_dns_zone_virtual_network_link_resource.go
Outdated
Show resolved
Hide resolved
09a579c
to
92b1c46
Compare
all comments addressed, thanks for the review @stephybun! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EppO all of the tests are failing with
------- Stdout: -------
=== RUN TestAccPrivateDnsZoneVirtualNetworkLink_basic
=== PAUSE TestAccPrivateDnsZoneVirtualNetworkLink_basic
=== CONT TestAccPrivateDnsZoneVirtualNetworkLink_basic
testcase.go:173: Step 1/3 error: Error running apply: exit status 1
Error: creating/updating Virtual Network Link (Subscription: "*******"
Resource Group Name: "acctestRG-250131100554195547"
Private Dns Zone Name: "acctestzone250131100554195547.com"
Virtual Network Link Name: "acctestVnetZone250131100554195547.com"): performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with response: {"code":"BadRequest","message":"The ResolutionPolicy property is applicable exclusively to private link zones."}
with azurerm_private_dns_zone_virtual_network_link.test,
on terraform_plugin_test.tf line 57, in resource "azurerm_private_dns_zone_virtual_network_link" "test":
57: resource "azurerm_private_dns_zone_virtual_network_link" "test" {
--- FAIL: TestAccPrivateDnsZoneVirtualNetworkLink_basic (130.76s)
FAIL
I figured out what's wrong. This policy is only available for Private DNS zones associated to Private Link resources. In the current test, the private DNS zone is a random one |
Community Note
Description
Add support for the new setting
resolution_policy
Supported values are:
Default
orNxDomainRedirect
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_private_dns_zone_virtual_network_link
- support for theresolution_policy
property [GH-00000]This is a (please select all that apply):
Related Issue(s)
Fixes #28087